home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Netware Super Library
/
Netware Super Library.iso
/
zipfiles
/
a2c
/
bt515.exe
/
BTOOLS
/
BCLEAN.DOC
next >
Wrap
Text File
|
1991-04-17
|
4KB
|
95 lines
BCLEAN v1.01 (910204) (C) Copyright 1990, Novell, Inc.
You are free to use, copy and distribute BCLEAN IF:
(a) No direct commercial benefit is derived from the use,
copying or distribution; and,
(b) No modifications to any of the files making up BCLEAN are
made; and,
(c) Each ZIP file obtained from NOVELL containing BCLEAN is
copied and distributed in its entirety.
BCLEAN is provided "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OF
MERCHANTABILITY, TITLE AND FITNESS FOR A PARTICULAR PURPOSE. Some
states do not allow limitations on how long an implied warranty
lasts, so the above limitation may not apply to You. This warranty
gives you specific legal rights which vary from state to state.
Some states do not allow the exclusion or limitation of incidental
or consequential damages, so the above limitation or exclusion may
not apply to You.
-----------------------------------------------------------------------------
What is BCLEAN? Bclean performs the same operation as BUTIL -RECOVER/LOAD
without going to an intermediate file. Also, BCLEAN handles the majority of
status codes by continuing with the recover, even in places where RECOVER/LOAD
fails. This was the original purpose of BCLEAN and will remain the number one
goal. In addition, BCLEAN can rebuild the header of Btrieve files and can
renumber the page numbers in a Btrieve file. Both of these options modify the
original file, therefore it would be wise to backup up before using Btrieve,
even when the original file is already corrupt.
BCLEAN.EXE
USAGE:
BCLEAN <bad_file> <good_file> [<options>]
Where
<bad_file> is the file that needs recovery
<good_file> is the file to recover to
-If the file does not exist, AND the <bad_file> has a valid header,
then BCLEAN will create the <good_file>.
-If the file does exist, then BCLEAN will insert records to it.
* -If the header is bad in the <bad_file>, BCLEAN will use the header
from the <good_file> to fix the header in the <bad_file>.
<options>
* -R Tells BCLEAN to automatically rebuild the header of the <bad_file>.
* -P Tells BCLEAN to automatically rebuild the header of the <bad_file>
AND to re-page the <bad_file>. This is especially useful if not
all the records seemed to be recovered on a previous try.
-Dn Tells BCLEAN to dump (as characters) the record buffer, starting
at location n (total of 80 characters)
-Xn Tells BCLEAN to dump (as hex) the record buffer, starting at
location n (total of 40 bytes)
-S Do not make supplemental index permanent part of new file (they will
not be copied at all)
* These options will modify the original file. PLEASE BACK IT UP BEFORE
PROCEEDING!
BCLEAN only works with 5.10a of Btrieve (that's all it's been tested with). The
best possible way to use it is to have an existing <good_file> that has NO
records in it and to use the -R option. This way, BCLEAN will copy the correct
header from the <good_file> to the <bad_file> and thus ensure the <bad_file> is
correctly set up.
Known problems:
1) Does not always recover files with variable length records correctly if
the corruption occurred on a variable page. Give it a try anyway, then look
for variable length records. They might be truncated somewhat or they might
contain part of another variable length portion.
2) Turns supplemental indexes into permanent indexes. This is actually a
feature, but may cause problems. Use the -S option to leave off supplemental
indexes.
3) Does not function 100% using older versions of Btrieve (although it
should work on files created with older versions). Solution: DO NOT use any
other version of Btrieve than 5.10a. When newer versions come out, BCLEAN will
be updated.
Although BCLEAN may be distributed by Novell, Inc., it is NOT supported by
Novell., Inc. Send all comments, suggestions, and bug reports to:
David Harris
Compuserve ID: 76244,2020
I will do my best to reply, but cannot guarantee any action will be taken on
any and all requests.